
/**   
 * @Title: IBase.java 
 * @Package com.ishuoxiao.dao.hibernat 
 * @Description: TODO
 * @author yumaolin
 * @date 2012-7-3 上午9:14:48 
 * @version V1.0   
 */

package com.ishuoxiao.services.dao;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

/**
 *
 */
public interface IBase {
	public void add(Object obj);
	public void delete(Object obj);
	public void update(Object obj);
	public List findByhql(String hql);
	public Object selectByid(Class cls,Integer id);
	public List ByDeta(DetachedCriteria det);
	public List findByPage(final String hql, final int offset, final int pageSize);
	public List findByPage(final String hql , final Object value ,
			final int offset, final int pageSize);
	public List findByPage(final String hql, final Object[] values,
			final int offset, final int pageSize);

}